package com.lmk.mkcc.feign;

import com.lmk.mkcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",fallbackFactory = CourseMarketServiceFallbackFactory.class)
public interface CourseMarketService {
    @RequestMapping(value = "/courseMarket/{id}",method = RequestMethod.GET)
    public JSONResult get(@PathVariable("id")Long id);

    @RequestMapping(value = "/courseUserLearn/{courseId}/{loginId}",method = RequestMethod.GET)
    public JSONResult getByCourseIdAndLoginId(@PathVariable("courseId")Long courseId, @PathVariable("loginId")Long loginId);
}
